package com.example.demo.test;

import lombok.extern.slf4j.Slf4j;

/**
 * 缓存库类工序
 */
@Slf4j
public class BCacheAbstractWorkProcess extends CacheAbstractWorkProcess {


    public BCacheAbstractWorkProcess(String name, String description) {
        super(name, description);
    }


    @Override
    public Material working() {
        log.info("工艺:"+getProcessName()+" 加工进行");

        try {
            sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        setMaterial(null);
        return null;
    }

    @Override
    public WorkProcess nextProcess() {
        log.info("工艺:"+getProcessName()+" 下一个工艺");
        return null;
    }


}
